package com.suyuan.controller.admin;


import com.suyuan.entity.Areacodeinfor;
import com.suyuan.service.AreaService;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.ResponseBody;

import javax.annotation.Resource;
import java.util.List;

/**
 * 区域管理控制器
 */
@Controller
@RequestMapping("/admin/area")
public class AreaController {

    @Resource(name = "areaService")
    private AreaService areaService;


    /**
     * 寻找公司区域
     * @param
     * @return
     */
    @RequestMapping(value = "/findArea",method = RequestMethod.GET)
    public @ResponseBody List<Areacodeinfor> findAreaByCompID(Integer ID){
        return areaService.findAreaByCompID(ID);
    }







}
